﻿using System;

namespace gt.webapi.core.Logging
{
    public class LogEntry
    {
        public LogEntry()
        {
            CreateTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        }
        public string RequestId { get; set; }
        public string RequestUrl { get; set; }
        public string ControllerAction { get; set; }
        public string ClientIp { get; set; }
        public string ServerIp { get; set; }
        public int StatusCode { get; set; }
        public string UserAgent { get; set; }
        public string Appkey { get; set; }
        public string UrlParam { get; set; }
        public string Request { get; set; }
        public string Response { get; set; }
        public string CreateTime { get; set; }
        public double Duration { get; set; }
    }
}
